package com.demo.project_template.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 轮播图表
 * </p>
 *
 * @author ZhangKeChen
 * @since 2023-03-07 11:05:38
 */
@Data
@TableName("t_banner")
@ApiModel(value = "Banner对象", description = "轮播图表")
public class Banner implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("轮播图pk")
      @TableId(value = "banner_id", type = IdType.AUTO)
    private Integer bannerId;

    @ApiModelProperty("轮播图片地址")
    @TableField("banner_picture")
    private String bannerPicture;

    @ApiModelProperty("轮播图片地址（0=首页最上方，1=首页banner图，2=首页最下方，3=个人页最上方，4=个人页最下方）")
    @TableField("position")
    private String position;

    @ApiModelProperty("是否删除(0=否，1=是)")
    @TableField("is_delete")
    @TableLogic
    private String isDelete;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;


}
